@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="studentInfoForm">
            <input type="hidden" id="sexValue" value="${item.sex}">
            <input type="hidden" id="id" value="${item.id}">
            <input type="hidden" id="orgId" value="${item.orgId}">
            <input type="hidden" id="uploadUrl" value="${uploadUrl}">
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="orgName" name="所属学校" value="${item.orgName}" underline="true" disabled="disabled"/>
                    <#input id="cellphone" name="登录手机" value="${item.cellphone}" underline="true"/>
                    <#input id="studentCode" name="学籍号" value="${item.studentCode}" underline="true" span="true"/>
                    <#input id="nativePlace" name="籍贯" value="${item.nativePlace}" underline="true"/>
                    <#select id="politicalStatus" name="政治面貌" underline="true" value="${item.politicalStatus}">
                    <option value="">请选择</option>
                    @for(political in GBPolitical){
                    <option value="${political.code}" ${item.politicalStatus==(''+political.code+'')?'selected':""}>
                        ${political.cname}
                    </option>
                    @}
                </#select>
                <#input id="birthday" name="出生日期" value="${item.birthday}" underline="true"/>
                <#input id="telephone" name="联系电话" value="${item.telephone}" underline="true"/>
                <#input id="parentsName" name="家长姓名" value="${item.parentsName}" underline="true"/>
                <#avatar id="avatar" storageUrl="${storageUrl}"  name="用户头像" avatarImg="${item.photo}" underline="true"/>
            </div>
            <div class="col-sm-6">
                <#input id="name" name="姓名" value="${item.name}" underline="true" span="true"/>
                <#select id="sex" name="性别" underline="true" value="${item.sex}">
                <option value="">请选择</option>
                @for(sex in GBSex){
                <option value="${sex.code}" ${sex.code==item.sex?'selected':""}>${sex.cname}</option>
                @}
            </#select>
            <#input id="studentCardId" name="学生卡号" value="${item.studentCardId}" underline="true"/>
            <#select id="nationCode" name="民族" underline="true" value="${item.nationCode}">
            <option value="">请选择</option>
            @for(nation in GBNation){
            <option value="${nation.code}" ${nation.code==item.nationCode?'selected':""}>${nation.cname}</option>
            @}
        </#select>
        <#select id="poorType" name="经济困难生" underline="true" value="${item.poorType}">
        <option value="">请选择</option>
        @for(poorStudentType in poorStudentTypes){
        <option value="${poorStudentType.value}" ${poorStudentType.value==(''+item.poorType+'')?'selected':""}>
            ${poorStudentType.name}
        </option>
        @}
    </#select>

    <#input id="familyAddress" name="家庭住址" value="${item.familyAddress}" underline="true"/>
    <#input id="email" name="电子信箱" value="${item.email}" underline="true"/>
    <#input id="parentsPhone" name="家长联系方式" value="${item.parentsPhone}" underline="true"/>
    <#input id="postCode" name="邮编" underline="true" value="${item.postCode}"/>
</div>
</div>

<div class="row btn-group-m-t">
    <div class="col-sm-10">
        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="PtStudentInfoDlg.editSubmit()"/>
        <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="PtStudentInfoDlg.close()"/>
    </div>
</div>
</div>

</div>
</div>
<script src="${ctxPath}/static/modular/system/ptStudent/ptStudent_info.js"></script>
<script>
    laydate.render({
        elem: '#birthday'
    });
</script>
@}
